This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Once set to 0 changes to the document will not be saved.
Many times people use it on a cancel button.
Let's say a user opens a document in edit mode, makes changes and then wants to "cancel".
If the user hits the escape button the user is prompted, do you wish to save the changes.
If the developer provides a button for the user labeled "Cancel".. with the following code:
field saveOptions := "0";
@command([fileclosewindow])
The document is closed w/out the prompt. The field is not set to "0" because it is never saved.
From the help:
@Command( [FileCloseWindow] )
Usage
This command executes after all @functions. Use @Command([CloseWindow]) to execute immediately. See the Order of evaluation for formula statements topic for more details.
FileCloseWindow does not close the Notes workspace window.
When using this command on a form in Notes, to prevent the user from being prompted to save any changes, either save the document first, or use the statement FIELD SaveOptions := "0"; before this command to exit without saving.
You can use this command with Web applications, as long as you enable the "Allow Javascript on the Web" setting on the Basics tab of the Database Properties box. Precede this command with @Command([FileSave]) to simulate a Submit button.
Also from the help:
SaveOptions, values to set: 1, 0
Use 1 to save mailed documents. Use 0 so that the document is not saved when mailed. prevent the document from being saved.
Feedback response number WEBBATTHBA created by ~Hal Quetlu on 12/07/2017